﻿namespace EFS.RC.Wallboard.Controls.Common.Charts.Bars
{
	public class Limit
	{
		private EFS.RC.Wallboard.Common.Config.Sections.Phones.Profiles.Charts.Limits.Limit limitConfig = null;

		public Limit(EFS.RC.Wallboard.Common.Config.Sections.Phones.Profiles.Charts.Limits.Limit limit)
		{
			// check
			EFS.Common.Verify.Reference(limit, "limit");

			// set default
			this.limitConfig = limit;
		}

		public System.Int32 Max
		{
			get
			{
				return limitConfig.Max;
			}
		}
	}

}